#include "ProductService.h"

// 获取商品信息
QList<Product> ProductService::getProducts(const QString &productType, const QString &productName, const QString &filterCriteria, const QString &sortBy)
{
    return ProductDataAccess::getProducts(productType, productName, filterCriteria, sortBy);
}

// 添加商品评论
bool ProductService::addProductReview(const int &productId, const int &userId, const QString &content)
{
    return ProductDataAccess::addProductReview(productId, userId, content);
}

// 获取商品评论
QList<ProductReview> ProductService::getReviews(const int &productId)
{
    return ProductDataAccess::getReviews(productId);
}

// 获取指定ID的商品信息
Product ProductService::getProductById(const int &productId)
{
    return ProductDataAccess::getProductById(productId);
}
